package com.mythesis.bpel.ui.client;

import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.RichTextArea;
import com.google.gwt.user.client.ui.TabPanel;

public class BpelDesignPanel extends TabPanel{
	private AbsolutePanel designPanel;
	protected AbsolutePanel codePanel;
	
	public BpelDesignPanel(){
		setSize("100%", "100%");
		setDesignPanel(new AbsolutePanel());
		codePanel = new AbsolutePanel();
		RichTextArea rta = new RichTextArea();
		codePanel.add(rta);
		add(getDesignPanel(), "Design");
		add(codePanel, "Code");
		selectTab(0);
		designPanel.setHeight("600px");
	}

	public void setDesignPanel(AbsolutePanel designPanel) {
		this.designPanel = designPanel;
	}

	public AbsolutePanel getDesignPanel() {
		return designPanel;
	}
}
